 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
me Guest
|
Posted: Fri Jun 27, 2003 11:53 am Post subject: QMenuBar question |
|
|
Hi,
I trying to add a menu bar to my main widget.
The reslut is, that the menus (like file menu) apear and work ok, but
the menubar it self is not being refreshed at all.
I looked at all the documantation I could find, and I cant find what I
am doing wrong...
When my main widget first apears, the area of the menu bar will be
full with what ever is behind the main widget at creation time
(meaning it had no paint event), and will not refresh.
The menus, are responding and visible as expected.
The code below is only the code needed for the display of hte menu bar
and menus that are in it with out the slot connections...)
Can you guys have clue?
Thanks
LutCreator::LutCreator(QWidget *parent, const char *name) :
BaseDlg(parent, name)
{
m_fileMenu = new QPopupMenu;
m_LUTmenu = new QPopupMenu;
m_menuBar = new QMenuBar(this);
m_LUTmenu->insertItem("Lut");
m_menuBar->insertItem("File",m_fileMenu);
m_fileMenu->insertItem("Load Lut");
m_fileMenu->insertItem("Save Lut");
m_menuBar->insertItem("LUT",m_LUTmenu);
[snip]
}
|
|
| Back to top |
|
 |
Ashish Guest
|
Posted: Fri Jun 27, 2003 3:49 pm Post subject: Re: QMenuBar question |
|
|
"me" <dkls (AT) hotmail (DOT) com> wrote
| Quote: | Hi,
I trying to add a menu bar to my main widget.
The reslut is, that the menus (like file menu) apear and work ok, but
the menubar it self is not being refreshed at all.
I looked at all the documantation I could find, and I cant find what I
am doing wrong...
.... |
WTF are QMenuBar widget?
--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com
|
|
| Back to top |
|
 |
Asle Frantzen Guest
|
|
| Back to top |
|
 |
Ashish Guest
|
Posted: Fri Jun 27, 2003 5:50 pm Post subject: Re: QMenuBar question |
|
|
"Asle Frantzen" <asle (AT) cocacoliker (DOT) com> wrote
| Quote: | Ashish wrote:
WTF are QMenuBar widget?
Hmm, haven't anyone here heard about the Qt-library?
|
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be redirected to an
appropriate newsgroup rather than answering his questions here. (I am sorry
I didnt redirect him in the first place, I am too lazy)
--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com
|
|
| Back to top |
|
 |
Asle Frantzen Guest
|
Posted: Fri Jun 27, 2003 6:08 pm Post subject: Re: QMenuBar question |
|
|
Ashish wrote:
| Quote: | It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be
redirected to an appropriate newsgroup rather than answering his
questions here. (I am sorry I didnt redirect him in the first place,
I am too lazy)
|
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
..a
|
|
| Back to top |
|
 |
Thomas Matthews Guest
|
Posted: Fri Jun 27, 2003 7:37 pm Post subject: Re: QMenuBar question |
|
|
Asle Frantzen wrote:
| Quote: | Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be
redirected to an appropriate newsgroup rather than answering his
questions here. (I am sorry I didnt redirect him in the first place,
I am too lazy)
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
.a
|
Sorry, but you are wrong. Just because something is compiled on
two platforms doesn't make it platform independent.
Let us examine a tape drive system. The tape drive system doesn't
have any screen or video connected to it. Yet it can still
support the C++ language. I've worked on systems that did.
However, it won't support Qt since it doesn't have a display.
Let us look at laser printers. Laser printers don't have video
screens (at least the cheaper ones). Those laser printers can
support standard C++. What good is supporting a Windowing
U/I when there is no device for displaying the information?
Just to let you know, Workstations and PCs are not the only
platforms in existance. Not all platforms have video displays.
Search the C++ and C newsgroups for my rants on this issue.
I believe also that Shiva has it in the Welcome.txt listed below.
--
Thomas Matthews
Embedded Systems Software Engineer
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
|
|
| Back to top |
|
 |
Jim Fischer Guest
|
Posted: Fri Jun 27, 2003 7:40 pm Post subject: Re: QMenuBar question |
|
|
Asle Frantzen wrote:
| Quote: | Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be
redirected to an appropriate newsgroup rather than answering his
questions here. (I am sorry I didnt redirect him in the first place,
I am too lazy)
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
|
There are no Qt newsgroups -- at least, none that I know of -- but there
are Qt mailing lists. IOW, you email your question to other people who
also subscribe to the mailing list, and then hope that someone responds
to your email. For more info, visit the Qt web site
http://www.trolltech.com/
click on the "Developer" link, click on the "Mailing Lists" link, and
then read up on the various mailing lists to learn which list(s) are
appropriate for your needs.
--
Jim
To reply by email, remove "link" and change "now.here" to "yahoo"
jfischer_link5809{at}now.here.com
|
|
| Back to top |
|
 |
Filipe Sousa Guest
|
Posted: Wed Jul 02, 2003 6:36 pm Post subject: Re: QMenuBar question |
|
|
Jim Fischer wrote:
| Quote: | Asle Frantzen wrote:
Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be
redirected to an appropriate newsgroup rather than answering his
questions here. (I am sorry I didnt redirect him in the first place,
I am too lazy)
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
There are no Qt newsgroups -- at least, none that I know of -- but there
|
nntp.trolltech.com but I think is read only
| Quote: | are Qt mailing lists. IOW, you email your question to other people who
also subscribe to the mailing list, and then hope that someone responds
to your email. For more info, visit the Qt web site
http://www.trolltech.com/
click on the "Developer" link, click on the "Mailing Lists" link, and
then read up on the various mailing lists to learn which list(s) are
appropriate for your needs.
|
|
|
| Back to top |
|
 |
Russell Hanneken Guest
|
Posted: Wed Jul 02, 2003 8:12 pm Post subject: Re: QMenuBar question |
|
|
"Filipe Sousa" <filipe.gr.sousa (AT) alunos (DOT) ipb.pt> wrote
| Quote: | Jim Fischer wrote:
There are no Qt newsgroups -- at least, none that I know of
nntp.trolltech.com but I think is read only
|
You can post if you register a username and password:
http://www.trolltech.com/newsapply.html
--
Russell Hanneken
[email]rhanneken (AT) pobox (DOT) com[/email]
|
|
| Back to top |
|
 |
me Guest
|
Posted: Tue Jul 15, 2003 8:51 am Post subject: Re: QMenuBar question |
|
|
Before everything, I jsut would like to thank everyone who answered.
I am sorry this post is off topic, but as siad here, I couldnt find
any specific newsgroups that dealt with QT, and since I have seen some
QT questions in this group, I thought it was Ok, so sorry about that.
However Thomas, from the way you wrote about QT, it seams to me you
know nothing about it, yet you alow your self to make very wide
asumptions on it.
My sugestion - and this is in a friedly tone, dont talk about things
you dont know anything about.
The examples you gave about the drive system or others that dont use
displays - and THATS why they will not supports QT is absolute
nonsense.
Qt is just a warpper, and as far as I know, it self, IS in standard
C++.
It is true, that some QT mechanisms are not C++ like signals and
slots, but their implementation is very much C++.
I dont understand exactly what do you mean when you say that a device
"supports c++"...
No device supports a specific higher language, only machine code.
C++ is human language - not machine language.
It might be that a device will work with only a sertain
compiler-linker, that knows exactly the code "foramt" for that device,
and then the language is compiler specific - maybe you meant that.
In principal, there should be no reason to stop you from writting
drivers or any other sort of code for any device, be it using QT MFC
or any other library or language... with or without display as I have
done more then one time.
All the best
Mikledet.
Thomas Matthews <thomas_matthews (AT) sbcglobal (DOT) net> wrote
| Quote: | Asle Frantzen wrote:
Ashish wrote:
It is still off-topic. Just because its open source, Linux or whatever
doesnt make it a part of the standard C++. The OP should be
redirected to an appropriate newsgroup rather than answering his
questions here. (I am sorry I didnt redirect him in the first place,
I am too lazy)
That might be. And please let me know if you know of some
other newsgroup that discusses the use of Qt in C++, because
I haven't found any yet :(
(Btw it has nothing to do with linux, just because KDE afaik
has been created with it, it's platform-independent...)
.a
Sorry, but you are wrong. Just because something is compiled on
two platforms doesn't make it platform independent.
Let us examine a tape drive system. The tape drive system doesn't
have any screen or video connected to it. Yet it can still
support the C++ language. I've worked on systems that did.
However, it won't support Qt since it doesn't have a display.
Let us look at laser printers. Laser printers don't have video
screens (at least the cheaper ones). Those laser printers can
support standard C++. What good is supporting a Windowing
U/I when there is no device for displaying the information?
Just to let you know, Workstations and PCs are not the only
platforms in existance. Not all platforms have video displays.
Search the C++ and C newsgroups for my rants on this issue.
I believe also that Shiva has it in the Welcome.txt listed below.
--
Thomas Matthews
Embedded Systems Software Engineer
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|