Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • How to switch forms?

    7
    0 Votes
    7 Posts
    4k Views
    S
    hiding the main window probably isn't quite what i wanted to do. i want to be able to start the app with a home screen, then click a button and go to another screen. the second(and subsequent) screens will have their own controls, event handlers, etc. i then want to be able to switch to other screens, as well as return to the 'home' screen. i'll take a look at QStackedWidget, that sounds like it might be closer to what i wish to do. thanks for input, i'll report back what i discover here.
  • Debug runs but release crashes on launch

    3
    0 Votes
    3 Posts
    4k Views
    Q
    I had the same trouble. Sometimes the debug mode misses some exception messages. Choose Build-> Clear All Run QMake Build all If this fails, check out step by step, each line in debug mode, you will surely find it.
  • [Solved] QGraphicsView not updating

    2
    0 Votes
    2 Posts
    6k Views
    E
    In overriding QMainWindow::event() I should have not simply returned false in case of not handling the event myself, I should have had @return QMainWindow::event(e);@ That solved it.
  • To Read Multiple lines on PushButton click.d

    4
    0 Votes
    4 Posts
    2k Views
    C
    The simplest example would be to save the entire "GPL-3.0":http://www.opensource.org/licenses/GPL-3.0 into resource file. When button is clicked, read the file, and put the "plain text":http://doc.qt.nokia.com/stable/qtextedit.html#plainText-prop into QTextEdit
  • Active resizing of widgets inside mainwindow

    5
    0 Votes
    5 Posts
    4k Views
    P
    ya i want to resize with mouse insides widgets of mainwindow
  • [Solved]Get QModelindex

    9
    0 Votes
    9 Posts
    7k Views
    T
    Ok thanks I try this a little later.
  • QmlJS::ModelManagerInterface - getting semantic info out of QML file

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    19 Posts
    8k Views
    P
    Now i got thanks
  • Accessing Qlist within a Qlist and Deallocating them through Qml

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to display window icon?

    4
    0 Votes
    4 Posts
    3k Views
    C
    Maybe you should also use "application icon":http://doc.qt.nokia.com/latest/appicon.html
  • 0 Votes
    2 Posts
    10k Views
    G
    You could use "strechLastSection":http://doc.qt.nokia.com/4.7/qheaderview.html#stretchLastSection-prop which stretch only the last one and use a resizeToContents after filling in the data. Then the user could change the width but the last column always fits.
  • Parse error when declaring under public slot but not under public!!!

    11
    0 Votes
    11 Posts
    8k Views
    G
    The point is, if it is declared under slots, it IS parsed by moc, which results in the error. MOC does some validation and the produces a build error.
  • Using open source Qt for developing a commerical software

    6
    0 Votes
    6 Posts
    3k Views
    G
    [quote author="waqas" date="1321963889"]Hi. I got a quick question. I am developing a new programming language along with it's own compiler and IDE. I want to use nokia's Qt in order to build my own IDE. I want to license my product. My question is: Is it possible to use open source Qt to develop my own IDE so I can sell it for commercial purposes? Thank you. Waqas [/quote] Yes and no, you can use the LGPL license. You may not use stuff that is licensed under GPL. There are some restrictions, which are mentioned in the docs about stuff that has another then the standard Qt license.
  • Qt QMessageBox problem with Unicode (Tamil) and fromUTF8 function

    7
    0 Votes
    7 Posts
    7k Views
    A
    Hi Gerolf My application is in one language(just utf-8 unicode). thanks,your right; And hi Volker. @msgBox.setText(QString::fromUtf8("your text"));@ this is so useful code for me. thanks a lot best regards
  • How to get the coordinates of the rect item under mouse position

    5
    0 Votes
    5 Posts
    5k Views
    R
    As Andre sayed you should read the documentation. You can use this one "items()":http://doc.qt.nokia.com/latest/qgraphicsscene.html#items-3
  • Displaying an image on Rgb channel

    2
    0 Votes
    2 Posts
    3k Views
    BilbonSacquetB
    The problem is that you have probably an image in true color without color palette. To get the color, in such a case: @ QImage im(//the path); QVector c[im.width()][im.height]; for (int i = 0; i<im.width(); i++) for (int j=0; j<im.height(); j++) c[i][j] = qRed(im.pixel()); ... @
  • Change Application Version

    3
    0 Votes
    3 Posts
    5k Views
    L
    There is no implicit application version, just one explicitly set using QCoreApplication::setApplicationVersion(), which takes any version information you provide. You might set "VERSION":http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#version in your .pro file, but this information does not automatically populate applicationVersion. If we are talking about embedding version information into Windows application see "this":http://developer.qt.nokia.com/forums/viewthread/9922 thread.
  • 0 Votes
    7 Posts
    4k Views
    B
    Thank you for your big help. In effect I solved the task on an other way. I just delegate an own Signal from Page1 through the Wizard to an own Slot of Page2. @connect(this->page(page1), SIGNAL(changed(QList<QString>)), this->page(page2), SLOT(magic(QList<QString>)));@ But your solution helped me a lot. Thank you verry much.
  • 0 Votes
    3 Posts
    6k Views
    P
    I don't need them...so just supress that warning as Microsoft says on MSDN ?... I hope, it'll work... Well, MSDN says: You could also compile with /Z7, so the pdb doesn't need to be used, or remove the /DEBUG linker option if you do not have .pdb files for the objects you are linking. @http://msdn.microsoft.com/en-us/library/b7whw3f3(VS.80).aspx@ It means that I have to add /Z7 option or remove /DEBUG parameter... But 4.7.3 don't do that...
  • [SOLVED] Qt Solutions gone?

    6
    0 Votes
    6 Posts
    4k Views
    A
    Good to hear they are still available on line.