i am slightly new to qt and im not sure how to implement this graphic...
i am doing most of my design in qt designer and then implementing things that cant be done in designer in visual studio. im also not the most proficient c++ programmer, but i can hold my own.
with that in mind, i am trying to create a frame or widget (anything really that can achieve my goal) that i can split into 4 regions by drawing a line that divides the frame (or whatever) into 4 triangular regions. i want to be able to fill each region with either a green or red background.
i have tried looking into QPainter but am having trouble even getting visual studio to even recognize the class (here is where my c++ skills are lacking)
here is the first line of my constructor just so you can have an idea of how im referencing widgets from my designer *.ui file
VideoInterface
::VideoInterface(QWidget *parent
) : QWidget(parent, Qt
::FramelessWindowHint),
ui(new Ui::VideoInterface)
{
ui->setupUi(this);
}
VideoInterface::VideoInterface(QWidget *parent) :
QWidget(parent, Qt::FramelessWindowHint),
ui(new Ui::VideoInterface)
{
ui->setupUi(this);
}
To copy to clipboard, switch view to plain text mode
i will attach an image that is a basic idea of what im trying to achieve... any help will be greatly appreciated.
thanks for your time
Bookmarks