Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QSettings. setPath with systemScope ignores userScope

    4
    0 Votes
    4 Posts
    5k Views
    G
    It could be that the system ini file is only read when there is no user file at all. I did not try this before.
  • How to implement border-image effect, in QWidget .

    3
    0 Votes
    3 Posts
    5k Views
    T
    A custom paint method will of course get you the required effect:-) I doubt that QFrame is the way to go.
  • QPainter size limitations

    6
    0 Votes
    6 Posts
    4k Views
    B
    That makes more sense!
  • QLayout Border

    7
    0 Votes
    7 Posts
    10k Views
    I
    In Qt Designer, Go to Form menu >> Preview, or press Ctrl + R and it'd show you how it looks (this is just a quick preview of your ui file alone, not the final look & feel of your actual application)
  • GridLayout->addwidget(someotherframe) Gives SegFault

    2
    0 Votes
    2 Posts
    3k Views
    W
    ok nm found the issue, Did notice that when you do it this way though, QT creates each widget as a separate item until the final frame is created.
  • Question about Random Animation

    5
    0 Votes
    5 Posts
    4k Views
    T
    Franzk: This might be a research project on teleporting cars, you never know. It is amazing where Qt is used nowadays:-)
  • QGraphicsView with auto-scrolling

    4
    0 Votes
    4 Posts
    6k Views
    V
    Also when just set an ItemIsMovable flag, and drag my item outside the viewport area, I encounter many error warnings in QtCreator saying: "QPainter.<some_qpainter_method>: painter not active, aborting>. What abous this problem?
  • [Solved] segfault with simple GGraphicsView

    3
    0 Votes
    3 Posts
    2k Views
    B
    Thanks alot!
  • 0 Votes
    4 Posts
    5k Views
    T
    mmh, yesterday it works, but now it seems there is another problem. I've added some debug output and i found out, that GraphicsWidget in showFullScreen don't have focus/isactivewindow. so the problem exists
  • DOM classes: Question about the design

    2
    0 Votes
    2 Posts
    2k Views
    I
    Your proposal duplicates functionlity in two different classes. In QDomDocument and in QDomElement. If gone with your approach, it'd further require duplication in QDomComment, QDomCDATASection, etc... Also, another philosophical reason is clearly mentioned in the QDomDocument that, "http://doc.qt.nokia.com/4.7/qdomdocument.html#details":http://doc.qt.nokia.com/4.7/qdomdocument.html#details bq. Since elements, text nodes, comments, processing instructions, etc., cannot exist outside the context of a document, the document class also contains the factory functions needed to create these objects. The node objects created have an ownerDocument() function which associates them with the document within whose context they were created. Make yourself a little helper class based on below pseudo. @ctor(){ _doc = new QDomDocument(); } ~(){ delete _doc; } //Type is enum. QDomNode* class::createNode(QDomNode* parent, const QString& nodeText, Type type) { switch(type){ case Element: QDomElement* elem = _doc->createElement(nodeText); parent->appendChild(*elem); return elem; ... } }@
  • Set Grid Location of A Widget within a Frame

    4
    0 Votes
    4 Posts
    4k Views
    W
    Well I have been Trying and have looked over the documentation.... But I am still now sure how to actually place a spacer into a given x and y position with a given height and width. I am trying to add several widgets to a gridlayout within a frame. I cant get everything aligned left with the spacer, but im not sure yet as to how you go about setting the spacers from a given x to a given x. Thanks
  • Background position in pixels

    2
    0 Votes
    2 Posts
    5k Views
    ?
    I chked the sources and looks like Qt webkit has code to recognize background-position x and y values. see: webkit/webcore/css/CSSParser.cpp Normal widgets only support alignment .. see: gui/text/qcssparser.cpp
  • Using a user-built lib in application opens also a cmd window. Why?

    3
    0 Votes
    3 Posts
    4k Views
    ?
    hi kotaidis, can you enclose your code within the @ tag for better reading
  • QList copy constructor

    3
    0 Votes
    3 Posts
    8k Views
    G
    Ok, thank you.
  • [Solved] No such signal - My own class

    5
    0 Votes
    5 Posts
    9k Views
    D
    Thanks a lot, I could not see my mistake.
  • 0 Votes
    9 Posts
    11k Views
    C
    [quote author="Felix" date="1289565002"]well i think the problem is not the MS-STL implementation (I guess lots of application would not work correctly then). I had the same bug with the VS2010 compiler. And the patch solved every release crash I had. I think the only problem was the bug in the compiler[/quote] The exact same patch that i am mentioning or another one ? Was that affecting only your x64 build or your Win32 build as well ?
  • Is there a lightweight browser for me to display web contents?

    7
    0 Votes
    7 Posts
    4k Views
    G
    You can use "QDesktopServices:: openUrl()":http://doc.qt.nokia.com/4.7/qdesktopservices.html#openUrl to open the web page with the default browser of the system: @ #include <QDesktopServices> QUrl url("http://qt.nokia.com"); QDesktopServices::openUrl(url); @ This opens the system's browser as an external process, it is not a modal dialog, so the flow of control in your program continues. The external browser even stays open when your application quits. What's so bad about including Qt webkit libs in your app?
  • [Solved] Hi guys! Needing help getting QT to play nice with WinSock

    3
    0 Votes
    3 Posts
    7k Views
    A
    Thank You very much that seemed to work lovely - The packets that I am receiving after the first are a bit gobbledegook but that is another program for another day. Thanks again :-D
  • [Solved] Image in a tooltip

    6
    0 Votes
    6 Posts
    10k Views
    S
    Wow! Thanks!
  • QtMobility build errors on Mac

    11
    0 Votes
    11 Posts
    5k Views
    ?
    hi hhinrich, can you convert it to a link