Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • 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.
  • Properties and returning const pointers

    8
    0 Votes
    8 Posts
    9k Views
    A
    Well, there's of course the following approach: @... Q_OBJECT Q_PROPERTY(QObject* MyObject READ myObjectMutable WRITE setMyObject) ... const QObject* myObject() const { return m_pMyObject; } QObject* myObjectMutable() { return m_pMyObject; } void setMyObject(QObject* arg) { m_pMyObject = arg; } ... QObject* m_pMyObject; @ It would enable the property system to work, but in most cases, simply accessing the property using myObject() would return a const pointer. Elegant it is not.
  • Problem sorting TableView

    7
    0 Votes
    7 Posts
    5k Views
    A
    Did you try setting the right sortRole? I would set it to Qt::EditRole by default, as the Qt::DisplayRole is only a textual representation of the data, but not the actual data itself.
  • Header file gives a error

    4
    0 Votes
    4 Posts
    2k Views
    G
    But even with the #include, the pointer type should be known. The code looks ok to me. Something different must be going wrong.
  • What is qxtgui module?

    5
    0 Votes
    5 Posts
    3k Views
    A
    You mean in the designer part? AFAIK, there is no designer plugin for the GUI elements in Qxt. However, you can use the widget promotion feature for most widget, as most of them are just extensions to existing widgets. Qxt itself has quite decent documentation on how to use it in your project. It installs itself in such a way, that you can directly use it from your .pro file.
  • QWebView ignored border-radius in css.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved]Colors in win and linux

    3
    0 Votes
    3 Posts
    2k Views
    T
    Thank you could I somehow get the actual color on a button. I did the colorcount method and got 256 as answer.