Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • [SOLVED] smiles in textedit

    4
    0 Votes
    4 Posts
    2k Views
    A
    I have merged your two topics into one.
  • 0 Votes
    3 Posts
    1k Views
    A
    As stated by Gerolf: you already asked that question, and got your answer. Closing this topic.
  • New to Qt having fun but...

    3
    0 Votes
    3 Posts
    2k Views
    O
    And remember that a slot is a normal C++ function (member function). Therefore you can perform any action in your slot. For your example, it will give : @ void MyClass::onMyButtonClicked() { myLabel->setText(myLineEdit->text()); } @ And btw, welcome and have fun with Qt :)
  • QWidget::isVisible() not working on linux

    7
    0 Votes
    7 Posts
    5k Views
    B
    thank you , MR 2 , I have tested it with the small program , but didn't find any strange result . So thank you again , Mr 2 , just ignore this .
  • QSortFilterProxyModel - refresh TreeNode on delete/add

    4
    0 Votes
    4 Posts
    4k Views
    M
    Hi Gerolf, I think i found the problem let me solve and let you know. problem was with ---model.removeRows(0,item.rowCount(),index) solution -- item.removeRows(0,item.rowCount()) thanks
  • Problem on showing my text

    4
    0 Votes
    4 Posts
    2k Views
    A
    Fonts are not part of Qt though, so what is your question then exactly?
  • QGraphicsItem screenshot

    6
    0 Votes
    6 Posts
    3k Views
    D
    bq. I wonder if item transformations can screw up the painting. whit that code the image grabbed will be the item without transformations. But if you inscribe your item into another, you can then grab the outer one with the inner rotated :) bq. @deimos: your mediadownloader is a nice piece of software ! Are you playing the videos natively using FFMPEG and QPixmap(s) ? thanks a lot. Compliments are always welcome and I didn't received a lot even if it is been downloaded a lot :) Video are played with phonon (I am rewriting it using QtMultimediaKit without phonon) and since youtube needs cookies and with phonon you have not direct access to network (you can't set QNetworkRequest) I have subclassed QIODevice to threat streaming videos as a local file. They can be played also with mplayer. FFMPEG is used only to convert them. sorry to all for this OT @bunjee: if you want to find me I am in #qt, #meego channels at freenode irc :)
  • 0 Votes
    4 Posts
    2k Views
    Q
    Exactly what I was looking for! Many thanks for the suggestions.
  • Boxes demo from Qt crash on linux

    2
    0 Votes
    2 Posts
    2k Views
    K
    Just realized that it probably isn't working because I'm running ubuntu as the guest OS on VMware and I see a lot of posts related to absence of 3d h/w acceleration on a VM. Works just fine on my laptop that runs ubuntu. I also realize it isn't a Qt question (anymore) but any inputs on how to get it to work on a VM would still be useful.
  • [solved] error: undefined reference to `vtable for Biglietto’

    4
    0 Votes
    4 Posts
    3k Views
    S
    yes, i did everything... now this error is solved. thank you! =)
  • [QSqlRelationalTableModel] problem with TreeView

    6
    0 Votes
    6 Posts
    3k Views
    A
    If your model only uses a QSqlRelationalTableModel, then I suggest you don't inherit from it, but instead use encapsulation. That is: your model has a QSqlrelationalTableModel, but is just a QAbstractItemModel. There is little we can say on why this happens, if you do not show us any relevant code.
  • 0 Votes
    2 Posts
    2k Views
    V
    So..., Nobody has any idea of what this 'Phenomenon' is all about??
  • [Solved] QListWidget for displaying items in QTableView's cells

    6
    0 Votes
    6 Posts
    7k Views
    F
    I found a solution for my problem by looking again at the "Star Delegate Example":http://doc.qt.nokia.com/latest/itemviews-stardelegate.html. Instead of calling render(...) with option.rect.topLeft() as offset, translating painter with option.rect.topLeft() before calling render(...) fixes my problem: @ list_widget.render(painter, option.rect.topLeft()); @ @ painter->translate(option.rect.topLeft()); list_widget.render(painter); @ So apparently I didn't understand what the effect of calling "QWidget::render(...) with a targetOffset":http://doc.qt.nokia.com/latest/qwidget.html#render-2 means. Thanks again for all your input.
  • Background image or transparency from Style Sheet does not show on QWidget

    15
    0 Votes
    15 Posts
    27k Views
    R
    I tried with pallet, and for me also it failed. May be we should look for some other work around to appear the same,like its mentioned in stack overflow.
  • Integrating QGLWidget in QGraphicsScene

    2
    0 Votes
    2 Posts
    7k Views
    V
    Hi there, lots of questions, huh? I believe there is an error, because your QPaintEngine will never match your condition. Here I had problems because I have OpenGL2 and was comparing only OpenGL. Maybe if you replace && by ||. @if (painter->paintEngine()->type() != QPaintEngine::OpenGL || painter->paintEngine()->type() != QPaintEngine::OpenGL2)@ This path is difficult [quote author="basil_fawlty" date="1314306305"] I thought that it might be possible to integrate my own GLWidget, where i define the typical QGLWidget/OpenGL-Functions.I @ void initializeGL(); void paintGL(); void resizeGL(int width, int height);) @ Somehow like this: @ GraphicsView view; view.setViewport(new MyGLWidget(QGLFormat(QGL::SampleBuffers))); @ But it isnt working. [/quote] Well, there is an example code you can use on the same "link":http://qt.gitorious.org/qt-labs/modelviewer you have pointed. It might be enlightening to you. As the whys of this strategy, I honestly don't know. I hope this helps, Regards, VitorAMJ
  • [solved]How to add a link to next page?

    10
    0 Votes
    10 Posts
    5k Views
    C
    Thanks a lot to you all. It was a great help.. Truely very much thanks. :)
  • QSettings - Sync issue between two process

    3
    0 Votes
    3 Posts
    2k Views
    K
    Hi, Thanks for the reply. I realized the mistake am doing. Thanks again. -Karthik
  • Check Server Stats (online/offline)

    4
    0 Votes
    4 Posts
    4k Views
    G
    "QNetworkAccessManager::head() ":http://doc.qt.nokia.com/4.7/qnetworkaccessmanager.html#head is your friend. Use it just like a get request.
  • 0 Votes
    6 Posts
    5k Views
    D
    Thanks, Gerolf. I notice my mistake now.
  • QDockWidget [Solved]

    7
    0 Votes
    7 Posts
    3k Views
    R
    [quote author="mlong" date="1314403576"]I'm not sure what the behavior of a QDockWidget is if it's not used in conjunction with a QMainWindow. According to the docs, a QDockWidget is designed to be docked in a QMainWindow, not just an arbitrary widget. You can always create a QMainWidget, and set your AdvancedTextEditor as its central widget. Then the dock widget should behave properly. [/quote] Thanks for all the help, =). Solved !! =)..