Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • String list parsing or serializing

    5
    0 Votes
    5 Posts
    3k Views
    G
    you can overwrite the streaming operators to support std:ostring for QString andf QStringList. Then it should work :-)
  • QTableView::clearSpans()

    2
    0 Votes
    2 Posts
    3k Views
    S
    Ok. I don't get it. It's working now??? Except now I'm calling "reset()" and it's putting in a root entry. To be clearer, I'm adding a model of a QFileSystemModel type.
  • Disabling/hiding a directory from QTreeView

    2
    0 Votes
    2 Posts
    2k Views
    G
    as youuse QSFPM, you can, sure. Just overwrite filterAcceptsRow and check for the path.
  • Say to Qt to never erase a specified widget background

    5
    0 Votes
    5 Posts
    3k Views
    G
    Have you combined it with attribute: opaquePaintEvent etc? Perhaps you have to disable double buffering for the widget etc...
  • Push button tooltip shows up as garbled image!

    3
    0 Votes
    3 Posts
    3k Views
    W
    That makes sense. Thanks for the quick answer.
  • Creating a frame from HTML and parsing it

    2
    0 Votes
    2 Posts
    3k Views
    K
    I think you can't, you have to create a page and access its frame like this: @QWebPage page (); page.mainFrame()->setHtml(htmlString, QUrl::fromLocalFile("C:\someFolder"); @ In case you want to display the html I'd recommend you use a QWebView @QWebView* webView = new QWebView (parent); webView->setHtml(htmlString, QUrl::fromLocalFile("C:\someFolder"); QWebElementCollection image = webView->page()->mainFrame()->findAllElements("img"); if(image.count() > 0) { image.at(0).setAttribute("src", filePathString); } @
  • Video over usb port mpeg4

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to show tooltip for a widget from code

    8
    0 Votes
    8 Posts
    32k Views
    I
    [quote author="Andre" date="1319030027"]Trigger as in "show", yes. Your code does not trigger nor show, it only sets. [/quote] I said My Bad, I'm sure you get things wrong too
  • How to update textedit with qDebug things..

    3
    0 Votes
    3 Posts
    3k Views
    G
    You should start the process. EDIT: How is your question related to your thread topic? They do not match at all and qDebug is not used anywhere in your code.
  • Problem with object deletion?

    5
    0 Votes
    5 Posts
    2k Views
    T
    The OS makes sure all memory is freed when your application closes. So there is nothing to worry about after your program has terminated.
  • Looking for technical tutorials for beautiful artistic GUI designing

    4
    0 Votes
    4 Posts
    4k Views
    T
    umem242: Most likely not at all:-) You can do way more in QML than you can do (easily) in C++. That is why QML was introduced.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED]Graphicsview how to

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [solved] Different layout on item in" listview

    3
    0 Votes
    3 Posts
    2k Views
    T
    That was precisely what I wanted to know! Thank you! I'm having a hard time finding good tutorials on delegates ... most just explain the spinbox example, and can't seem to find information about more advance delegate graphics...
  • Programming Keyboard Focus!

    2
    0 Votes
    2 Posts
    2k Views
    I
    I don't know if this is what you want, but I have a tabbed interface and an add button in my pages, I can press "Ctrl" + "+" and only the active tab respond @add=new QAction(this); connect(add, SIGNAL(triggered()), this, SLOT(slotAdd())); add->setShortcut(QKeySequence(tr("Ctrl++"))); this->addAction(add);@ Edit: I'm so sorry I misunderstand the question, you can set focus with @setFocus()@ and a QTabWidget has a signal called @currentChanged@ so you just have to acess a child of your new Widget and set the focus to it..
  • Any need to configure for Win32?

    3
    0 Votes
    3 Posts
    3k Views
    P
    If i recall correctly you have to include windows.h before any other windows headers.
  • Mac + quazip lib + portable program

    2
    0 Votes
    2 Posts
    2k Views
    G
    You will have to change the paths in the quazip libraray according to the steps mentioned in the "Deploying an Application on Mac OS X":http://developer.qt.nokia.com/doc/qt-4.7/deployment-mac.html guide, follow the explanations regarding otool and install_name_tool.
  • Making Qt Apps(You develop) starting on System Startup, all OSes

    9
    0 Votes
    9 Posts
    5k Views
    G
    http://developer.qt.nokia.com/forums/viewthread/6451
  • QTSDK4.7.4 MingW errors

    3
    0 Votes
    3 Posts
    2k Views
    P
    fixed, because I include any including files into the namespace.what a shame!
  • 0 Votes
    2 Posts
    2k Views
    W
    Any updates on this. Because of this I am stuck with QT 4.5.1 and Visual Studio 2005 :(